home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / ktnef / ktnefattach.h next >
Encoding:
C/C++ Source or Header  |  2005-09-10  |  1.8 KB  |  71 lines

  1. /*
  2.     ktnefattach.h
  3.  
  4.     Copyright (C) 2002 Michael Goffioul <kdeprint@swing.be>
  5.  
  6.     This file is part of KTNEF, the KDE TNEF support library/program.
  7.  
  8.     This program is free software; you can redistribute it and/or modify
  9.     it under the terms of the GNU General Public License as published by
  10.     the Free Software Foundation; either version 2 of the License, or
  11.     (at your option) any later version.
  12.  
  13.     You should have received a copy of the GNU General Public License
  14.     along with this program; if not, write to the Free Software Foundation,
  15.     Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
  16.  */
  17.  
  18. #ifndef KTNEFATTACH_H
  19. #define    KTNEFATTACH_H
  20.  
  21. #include <qstring.h>
  22. #include <qmap.h>
  23. #include <qvariant.h>
  24. #include <ktnef/ktnefpropertyset.h>
  25. #include <kdepimmacros.h>
  26.  
  27. class KTNEFProperty;
  28.  
  29. class KDE_EXPORT KTNEFAttach : public KTNEFPropertySet
  30. {
  31. public:
  32.     enum ParseState { Unparsed = 0x0000, TitleParsed = 0x0001, DataParsed = 0x0002, InfoParsed = 0x0004};
  33.  
  34.     KTNEFAttach();
  35.     ~KTNEFAttach();
  36.  
  37.     void setTitleParsed();
  38.     void setDataParsed();
  39.     void unsetDataParser();
  40.     void setInfoParsed();
  41.     bool titleParsed() const;
  42.     bool dataParsed() const;
  43.     bool infoParsed() const;
  44.     bool checkState(int state) const;
  45.  
  46.     int offset() const;
  47.     void setOffset(int n);
  48.     int size() const;
  49.     void setSize(int s);
  50.     int displaySize() const;
  51.     void setDisplaySize(int s);
  52.     QString name() const;
  53.     void setName(const QString& str);
  54.     int index() const;
  55.     void setIndex(int i);
  56.     QString fileName() const;
  57.     void setFileName(const QString& str);
  58.     QString displayName() const;
  59.     void setDisplayName(const QString& str);
  60.     QString mimeTag() const;
  61.     void setMimeTag(const QString& str);
  62.     QString extension() const;
  63.     void setExtension(const QString& str);
  64.  
  65. private:
  66.     class AttachPrivate;
  67.     AttachPrivate *d;
  68. };
  69.  
  70. #endif
  71.